import { createRouter, createWebHashHistory } from "vue-router";
import Root from "views/root.vue";
import Index from "views/index.vue";
import Select from "views/select.vue";
import Write from "views/write.vue";
import Finish from "views/finish.vue";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      component: Root,
      redirect: "/index",
      children: [
        { path: "index", component: Index },
        { path: "select", component: Select },
        { path: "write", component: Write },
        { path: "finish", component: Finish },
      ],
    },
  ],
});

export default router;
